package org.qydjk.common.pojo.product;

import java.sql.Timestamp;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 产品分类实体
 * Created by Edward_yang on 2017/12/21
 */
@Entity
@Table(name = "qy_product_category", catalog = "qydjk")

public class ProductCategory implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer categoryId;
	private Integer productId;
	private Integer level;
	private Date createTime;
	private Date updateTime;

	// Constructors

	/** default constructor */
	public ProductCategory() {
	}

	/** full constructor */
	public ProductCategory(Integer categoryId, Integer productId, Integer level, Date createTime,
			Date updateTime) {
		this.categoryId = categoryId;
		this.productId = productId;
		this.level = level;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)

	@Column(name = "id", unique = true, nullable = false)

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "category_id")

	public Integer getCategoryId() {
		return this.categoryId;
	}

	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}

	@Column(name = "product_id")

	public Integer getProductId() {
		return this.productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}

	@Column(name = "level")

	public Integer getLevel() {
		return this.level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	@Column(name = "create_time", length = 19)

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "update_time", length = 19)

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}